import request from '@/utils/request'

// 查询签约记录表列表
export function listBeContract(query) {
  return request({
    url: '/behindContract/BeContract/list',
    method: 'get',
    params: query
  })
}

// 查询签约记录表详细
export function getBeContract(contractId) {
  return request({
    url: '/behindContract/BeContract/' + contractId,
    method: 'get'
  })
}

// 新增签约记录表
export function addBeContract(data) {
  return request({
    url: '/behindContract/BeContract',
    method: 'post',
    data: data
  })
}

// 修改签约记录表
export function updateBeContract(data) {
  return request({
    url: '/behindContract/BeContract',
    method: 'put',
    data: data
  })
}

// 删除签约记录表
export function delBeContract(contractId) {
  return request({
    url: '/behindContract/BeContract/' + contractId,
    method: 'delete'
  })
}
